package com.drugstore.drugstore.domain;


/**
 * 对象 orderdetail
 * 
 * @author 
 * @date 2025-05-08
 */
public class Orderdetail 
{

    /** $column.columnComment */
    private Long id;

    /** 所属订单ID */
    private Long orderId;

    /** 药品ID */
    private Long medicineId;

    /** 购买数量 */
    private Long quantity;

    /** 药品单价（单位分） */
    private Long price;


    public Orderdetail() {
    }

    public Orderdetail(Long id, Long orderId, Long medicineId, Long quantity, Long price) {
        this.id = id;
        this.orderId = orderId;
        this.medicineId = medicineId;
        this.quantity = quantity;
        this.price = price;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return orderId
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * 设置
     * @param orderId
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取
     * @return medicineId
     */
    public Long getMedicineId() {
        return medicineId;
    }

    /**
     * 设置
     * @param medicineId
     */
    public void setMedicineId(Long medicineId) {
        this.medicineId = medicineId;
    }

    /**
     * 获取
     * @return quantity
     */
    public Long getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return price
     */
    public Long getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Long price) {
        this.price = price;
    }

    public String toString() {
        return "Orderdetail{id = " + id + ", orderId = " + orderId + ", medicineId = " + medicineId + ", quantity = " + quantity + ", price = " + price + "}";
    }
}
